package org.byd.dmsja.controller;

import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.Map;

@CrossOrigin
@RestController
public class SaveController {

    public static class CPin {
        public Map<String, Object> info = new HashMap<>();
        public String myText = "";
    }

    public static class CPout {
        public String errMsg = "";
    }

    @PostMapping("/filesave")
    public CPout filesave(@RequestBody CPin in) {
        CPout out = new CPout();
        var info = in;
        return out;
    }
}
